﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Simple.Repository.Migrations
{
    public partial class _29 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<int>(
                name: "GenderType",
                table: "Parent",
                type: "int",
                nullable: false,
                defaultValue: 0,
                comment: "性别");

            migrationBuilder.AddColumn<Guid>(
                name: "ImgId",
                table: "Parent",
                type: "char(36)",
                nullable: true,
                comment: "头像id",
                collation: "ascii_general_ci");

            migrationBuilder.AddColumn<Guid>(
                name: "ImgId",
                table: "Childrens",
                type: "char(36)",
                nullable: true,
                comment: "头像id",
                collation: "ascii_general_ci");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "GenderType",
                table: "Parent");

            migrationBuilder.DropColumn(
                name: "ImgId",
                table: "Parent");

            migrationBuilder.DropColumn(
                name: "ImgId",
                table: "Childrens");
        }
    }
}
